-
Notifications
You must be signed in to change notification settings - Fork 834
fix(input): 移除非必要的 modelValue 更新 #3080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Walkthrough在这次更新中,主要对 Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v4 #3080 +/- ##
==========================================
- Coverage 83.99% 83.98% -0.02%
==========================================
Files 226 226
Lines 22939 22939
Branches 2476 2478 +2
==========================================
- Hits 19268 19265 -3
- Misses 3653 3656 +3
Partials 18 18 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/packages/__VUE/input/input.taro.vue (4 hunks)
Additional comments not posted (4)
src/packages/__VUE/input/input.taro.vue (4)
192-196
: 优化性能:仅在格式化值与原始值不同时才触发update:modelValue
事件。
197-197
: 优化性能:移除onFocus
方法中不必要的update:modelValue
事件触发。
197-197
: 优化性能:在onBlur
方法中更新值后触发update:modelValue
事件,而不直接操作value
变量。
197-197
: 简化代码:移除clear
方法中不必要的change
事件触发。
此 PR 存在无法覆盖到的场景,不能合并,需要重新设计方案。 |
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测:
Summary by CodeRabbit
新功能
错误修复
update:modelValue
事件的问题。update:modelValue
事件。change
事件的问题。